﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MultiAnnotatedRegex.tree {
	class ConcatTree : Tree {
		public readonly List<Tree> Children = new List<Tree>();

		public Tree PopLastChild() {
			Tree result = Children.Last();
			Children.RemoveAt(Children.Count-1);
			return result;
		}

		override void AcceptVisitor(TreeVisitor visitor) {
			visitor.VisitConcat(this);
		}
	}
}
